cfdbeacbd29ea5dfa8da4baa56067b8329c8955c,queue/src/test/java/com/bazaarvoice/emodb/queue/core/SizeQueueCacheTest.java,SizeQueueCacheTest,testSizeCache,#,33

Before Change



        // verify that it does *not* interact if the accuracy is decreased limit=50 over the next 14 seconds
        for (int i=0; i < 14; i++) {
            timeNanos.addAndGet(TimeUnit.SECONDS.toNanos(1));
            size = queueService.getMessageCountUpTo("testsubscription", 50L);
            assertEquals(size, 4800L, "Size should still be 4800");
            verifyNoMoreInteractions(mockEventStore);

After Change



        // verify that it does *not* interact if the accuracy is decreased limit=50 over the next 14 seconds
        for (int i=1; i <= 14; i++) {
            when(clock.millis()).thenReturn(start + TimeUnit.SECONDS.toMillis(i));
            size = queueService.getMessageCountUpTo("testsubscription", 50L);
            assertEquals(size, 4800L, "Size should still be 4800");
            verifyNoMoreInteractions(mockEventStore);